<template>
    <div class="button-container">
      <button @click="goBack">返回</button>
    </div>
  </template>
  
  <script>
  export default {
    methods: {
      goBack() {
        this.$router.go(-1);
      }
    }
  }
  </script>
  
  <style scoped>
  .button-container {
    position: fixed; /* 固定定位 */
    right: 10px; /* 距离页面右边的距离 */
  }
  
  button {
    width: 100%;
    padding: 2vw;
    font-size: 3vw;
    background-color: #0097FF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #0097FF;
  }
  </style>